const App = {
    mixins: [Save],//配置文件，路径/utils/mixins.js
    data() {
        return {
            Form: {},
            child:[],
            personal: [],
            organization: [],
            Party_Organization: [],
        };
    },
    'dataForm.Application_SerialNumber'(val) {

    },
    mounted() {
        this.getPersonal();
    },
    methods: {
        changeOrganization(val) {
            this.dataForm.Party_Organization_SerialNumber = val[val.length - 1]
        },
        getPersonal() {
            $.ajax({
                headers: requestHeaders(),
                url: `${mh}/generalBusiness/generalQueryBySQLSerialNumber`,
                type: "POST",
                data: {
                    SQLSerialNumber: "f_personal_information",
                    Condition: window.btoa(unescape(encodeURIComponent(this.nodeKey))),
                },
                success: (data) => {
                    this.Form = data[0];
                    $.ajax({
                        headers: requestHeaders(),
                        url: `${mh}/generalBusiness/generalQueryByTableNameWithOriginal`,
                        method: "post",
                        data: {
                            Data: 'personal_education_status',
                            Condition: `ID_Card_Number='${this.Form.ID_Card_Number}' AND Row_Status='0'`,
                        },
                        success: (res) => {
                            console.log(res);
                            this.child = res
                        },
                        complete: (XMLHttpRequest) => {
                            requestPretreatment(XMLHttpRequest);
                        },
                    });
                },
                complete: (XMLHttpRequest) => {
                    requestPretreatment(XMLHttpRequest);
                },
                dataType: "json",
            });

        },
    },
};
const { createApp, ref } = Vue;
const app = createApp(App);
app.use(ElementPlus,{locale: zhCn});
//这种方式是引入全部图标，无需单个引入
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
app.component('yl-upload', ylUpload);
const ElMessage = ElementPlus.ElMessage;
app.mount("#app");
